
CC = g++ -Wall -O2
SRC = ./src
TEMP  = ./temp
BIN = ./bin

DATA2GRAPH = ./data2graph
SHARE = ./share


all : data2graph 

data2graph : arg.o data2graph.o
			$(CC) -o $(BIN)/data2graph  $(TEMP)/arg.o  $(TEMP)/data2graph.o
clean :
			rm -f $(BIN)/data2graph $(BIN)/betweenness $(BIN)/degree $(TEMP)/*.o 

#############################################################################################################

arg.o : $(SRC)/$(SHARE)/arg.cpp $(SRC)/$(SHARE)/arg.h
		$(CC) -o $(TEMP)/arg.o -c $(SRC)/$(SHARE)/arg.cpp

core.o : $(SRC)/$(SHARE)/core.cpp $(SRC)/$(SHARE)/core.h
		$(CC) -o $(TEMP)/core.o -c $(SRC)/$(SHARE)/core.cpp

graph.o : $(SRC)/$(SHARE)/graph.cpp $(SRC)/$(SHARE)/graph.h
		$(CC) -o $(TEMP)/graph.o -c $(SRC)/$(SHARE)/graph.cpp

output.o : $(SRC)/$(SHARE)/output.cpp $(SRC)/$(SHARE)/output.h
		$(CC) -o $(TEMP)/output.o -c $(SRC)/$(SHARE)/output.cpp

data2graph.o : $(SRC)/$(DATA2GRAPH)/data2graph.cpp $(SRC)/$(DATA2GRAPH)/data2graph.h
		$(CC) -o $(TEMP)/data2graph.o -c $(SRC)/$(DATA2GRAPH)/data2graph.cpp

